package com.testjava.julycode;


public class DynamicProxy {
    public static void main(String[] args) {

        IVehical car = new Car();
        VehicalProxy proxy = new VehicalProxy(car);

        IVehical proxyObj = proxy.create();
        proxyObj.run();
    }
}






/*
 * output:
 * --before running...
 * Car is running
 * --after running...
 * */